const express = require('express');
const router = require('./router');
const { join } = require('path');

const app = express();

app.set('view engine', 'ejs');
app.use(express.static(join(__dirname, 'public')));
app.use(router);

app.listen(8001, () => console.log('Node Middle Server is running on 8001.'));
